$(document).ready(function(){
	var divs = $(".catalogDiv");
	$(".catalogDiv").mouseover(function() {
		this.style.backgroundColor='#C1C1C1';
	});
	$(".catalogDiv").mouseout(function() {
		this.style.backgroundColor='#EAEAEA';
	});
	$(".catalogDiv").click(function() {
		var divCount = $("[name=cataDiv]");
		var clickNum;
		for(i = 0;i < divCount.length; i++){
			$(divCount[i]).attr("class","seconClickDiv");
			if(divCount[i]==this){
				clickNum = i;
			}
				
		}
		$(this).attr("class","clickDiv");
		clickDiv(this,clickNum);
	});
});

var path;

/*点击div跳转函数*/
function clickDiv(obj,clickNum){
	path = $("#path").val();
	var url = path+"/";
	switch(clickNum){
	   case 0:
	     url += "pages/customCourse/courseManagerPage.jsp";
	     break;
	   case 1:
		 url += "pages/customCourse/onLineCoursePage.jsp";
	     break;
	   case 2:
		   url += "pages/customCourse/baseInfoPage.jsp";
	     break;
	   case 3:
		   url += "pages/customCourse/detailInfoPage.jsp";
	     break;
	   case 4:
	     break;
	   case 5:
	     break;
	   case 6:
	     break;
	   case 7:
	     break;
	   case 8:
	     break;
	   case 9:
	     break;
	   case 10:
	     break;
	   case 11:
	     break;
	}
	window.rightDiv.location=url;
}